package com.aolong.archives.core.sysmanage.action;

import com.aolong.archives.common.util.Const;
import com.rock.platform.action.BaseAction;
import com.rock.platform.util.SessionUtils;

public class SwtichLanguageAction extends BaseAction {


	private static final long serialVersionUID = 1L;

	
	public String swtichLanguage()
	{
		System.out.println("swtichLanguage");
		SessionUtils.setAttribute(SessionUtils.SKEY_LANGUAGE, 
							(this.getLoginBean().getLanguage().equals(Const.LANGUAGE_zh_CN))
							? Const.LANGUAGE_en_US : Const.LANGUAGE_zh_CN);
		SessionUtils.removeAttribute(SessionUtils.SKEY_LOGINBEAN);
		return SUCCESS;
	}
}
